import request from '@/utils/request'

// 查询存储MQTT光伏发电列表
export function listMqtt_pv_data(query) {
  return request({
    url: '/screen_mqtt_pv_data/mqtt_pv_data/list',
    method: 'get',
    params: query
  })
}

// 查询存储MQTT光伏发电详细
export function getMqtt_pv_data(id) {
  return request({
    url: '/screen_mqtt_pv_data/mqtt_pv_data/' + id,
    method: 'get'
  })
}

// 新增存储MQTT光伏发电
export function addMqtt_pv_data(data) {
  return request({
    url: '/screen_mqtt_pv_data/mqtt_pv_data',
    method: 'post',
    data: data
  })
}

// 修改存储MQTT光伏发电
export function updateMqtt_pv_data(data) {
  return request({
    url: '/screen_mqtt_pv_data/mqtt_pv_data',
    method: 'put',
    data: data
  })
}

// 删除存储MQTT光伏发电
export function delMqtt_pv_data(id) {
  return request({
    url: '/screen_mqtt_pv_data/mqtt_pv_data/' + id,
    method: 'delete'
  })
}
